cc	=g++ -c
ccld	=g++ -o

objs	= $(patsubst %.cpp,%.o,$(wildcard *.cpp))
headers = $(wildcard *.h)
targets	= ftpd 

.PHONY:all,clean,test
all:$(targets)

$(targets):$(objs)
	$(ccld) $@ $^
	strip $@

$(objs):$(headers)

clean:
	rm -f *.o
	rm -f $(targets)
	rm -f *.suo
	rm -f *.ncb
	rm -f *.user
	rm -f *.gch

test:
	make
	./$(targets)

